translation

fun Any?.translation(fallback: String): MutableText

Translates anything. If the thing is Translatable, it will use the built-in translation, otherwise it will translate the fallback key

Receiver

Anything, null or not. Translatable will provide its translation.

Return

MutableText translation based on the receivers translation, or the fallback translation

Author

fzzyhmstrs

Since

0.2.0

Parameters

fallback

String - translation key for the fallback translation